import subprocess
import time

proc = subprocess.Popen(['sleep', '1'])
while proc.poll() is None:
    print('Working ...')
    time.sleep(0.1)
print('Exit status =', proc.poll())
